package com.tenchael.http.service;

import org.springframework.stereotype.Component;

import com.tenchael.http.domain.User;

@Component
public class UserService {

	public User login(User user) {
		if ("1".equals(user.getPassword())) {
			return user;
		}
		return null;
	}

}
